package com.xxc.exam.entity.dto

import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.xxc.common.anotation.POKO
import org.springframework.format.annotation.DateTimeFormat
import java.sql.Time
import java.sql.Timestamp
import java.util.*

@POKO
data class ContestDto (
    var name:String? = null,
    var startTime:Timestamp? = null,
    var type:Int? = null,
    var endTime:Timestamp? = null,
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm")
    var timeLen:Date? = null,
    var sumScore:Int? = null,
    var ques:List<SelectionDto>? = null
)